package com.baylor.server.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "admin")
public class Admin {
	private Integer adminId;
	private String adminName;//用户名
	private String adminPassword;//用户密码
	private String empid;//工号
	private String userName;//用户姓名
	private String userSex;//用户性别；男：男；女：女；
	private String userPhone;//手机
	private String userEmail;//邮箱
	private String adminCreateTime;//new时间
	private Integer logicState;//数据逻辑状态   1.正常，2.已删除
	private Integer zhOrEn;//中英文 1:中文；2：英文  不要
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getAdminId() {
		return adminId;
	}
	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}
	@Column(name = "admin_create_time", nullable = false)
	public String getAdminCreateTime() {
		return adminCreateTime;
	}
	public void setAdminCreateTime(String adminCreateTime) {
		this.adminCreateTime = adminCreateTime;
	}
	@Column(name = "logic_state", nullable = false)
	public Integer getLogicState() {
		return logicState;
	}
	public void setLogicState(Integer logicState) {
		this.logicState = logicState;
	}
	@Column(name = "admin_name", nullable = false)
	public String getAdminName() {
		return adminName;
	}
	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}
	@Column(name = "admin_password", nullable = false)
	public String getAdminPassword() {
		return adminPassword;
	}
	public void setAdminPassword(String adminPassword) {
		this.adminPassword = adminPassword;
	}
	@Column(name = "empid", nullable = false)
	public String getEmpid() {
		return empid;
	}
	public void setEmpid(String empid) {
		this.empid = empid;
	}
	@Column(name = "user_name", nullable = false)
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Column(name = "user_sex", nullable = false)
	public String getUserSex() {
		return userSex;
	}
	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}
	@Column(name = "user_phone")
	public String getUserPhone() {
		return userPhone;
	}
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}
	@Column(name = "user_email")
	public String getUserEmail() {
		return userEmail;
	}
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	@Column(name = "zhOrEn")
	public Integer getZhOrEn() {
		return zhOrEn;
	}
	public void setZhOrEn(Integer zhOrEn) {
		this.zhOrEn = zhOrEn;
	}
	/**
	 *  中英文状态切换
	 */
	private String lang;

	public String getLang() {
		return lang;
	}
	public void setLang(String lang) {
		this.lang = lang;
	}
	
}
